package com.ag.work.dao;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ag.bean.TbEvent;
import com.ag.dao.TbEventDAO;

public class EventStatusDAO extends TbEventDAO {

	private static final Log log = LogFactory.getLog(EventStatusDAO.class);
	
	public List getStatus(String EId) {
		log.info("打印出：UId----" + EId);
		log.debug("getting TbEvent by id: " + EId);
		try {
			String hql = "from TbEvent e join fetch e.tbEventStatus where e.EId = ?";
			List event = getHibernateTemplate().find(hql, EId);
			log.info("-------" + event);
			return event;
		} catch (RuntimeException re) {
			log.error("get failed", re);
			throw re;
		}

	}
}
